home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
GNU
/
gawk_2_15_5.lha
/
gawk-2.15.5
/
msg.ch
< prev
next >
Wrap
Text File
|
1995-01-20
|
1KB
|
114 lines
Changes for MSG.CH by Andreas Scherer, January 20, 1995.
@x l.26
#include "awk.h"
@y
#include "ansiawk.h"
@z
@x l.33
err(s, emsg, argp)
const char *s;
const char *emsg;
va_list argp;
{
char *file;
@y
err(
const char *s,
const char *emsg,
...)
{
char *file;
va_list argp;
va_start(argp,emsg);
@z
@x l.60
(void) fflush(stderr);
@y
(void) fflush(stderr);
va_end(argp);
@z
@x l.65
msg(va_alist)
va_dcl
{
va_list args;
char *mesg;
va_start(args);
mesg = va_arg(args, char *);
err("", mesg, args);
va_end(args);
}
@y
msg(char *mesg,
...)
{
va_list args;
va_start(args,mesg);
err("", mesg, args);
va_end(args);
}
@z
@x l.79
warning(va_alist)
va_dcl
{
va_list args;
char *mesg;
va_start(args);
mesg = va_arg(args, char *);
err("warning: ", mesg, args);
va_end(args);
}
@y
warning(char * mesg,
...)
{
va_list args;
va_start(args,mesg);
err("warning: ", mesg, args);
va_end(args);
}
@z
@x l.92
fatal(va_alist)
va_dcl
{
va_list args;
char *mesg;
va_start(args);
mesg = va_arg(args, char *);
err("fatal: ", mesg, args);
va_end(args);
#ifdef DEBUG
abort();
#endif
exit(2);
}
@y
fatal(char *mesg,
...)
{
va_list args;
va_start(args,mesg);
err("fatal: ", mesg, args);
va_end(args);
#ifdef DEBUG
abort();
#endif
exit(2);
}
@z